﻿@using Cnm.Models.Admins
@{
    Layout = "_Layout.cshtml";

    var pageControls = ViewBag.PageControls != null ? ViewBag.PageControls as List<ControlType> : new List<ControlType>();
}

@using (Html.BeginForm(null, null, FormMethod.Post, new {id = "product-form"}))
{
    <div class="box">
        <div class="heading">
            <div class="col-xs-6">
                <i class="fa fa-home"></i> @ViewBag.PageTitle - @ViewContext.RouteData.Values["action"]
            </div>
            <div class="col-xs-6 actions-container text-right">
                @Html.Partial("_PageControlsPartial", pageControls)
            </div>
        </div>
        <div class="content">
            @RenderBody()
        </div>
        <div class="footing">
            <div class="col-xs-12 actions-container text-right">
                @Html.Partial("_PageControlsPartial", pageControls)
                </div>
            </div>
    </div>
}